package com.zlr.store.dao.impl;

import java.io.Serializable;

import org.springframework.stereotype.Repository;

import com.zlr.common.BaseDao;
import com.zlr.store.dao.SysUserDao;
import com.zlr.store.entity.SysUser;

@Repository
public class SysUserDaoImpl extends BaseDao<SysUser, String> implements
		SysUserDao {

	@Override
	public SysUser login(String username, String password) {
		
		return uniqueEntityByHql("FROM SysUser WHERE code=? and password=?",
				username, password);

	}

}
